package com.cnfangmao.masterdata.service;

import java.util.List;

import com.cnfangmao.masterdata.dto.GeneralSearchDto;
import com.cnfangmao.masterdata.dto.PermissionDto;
import com.cnfangmao.masterdata.dto.PermissionSearchDto;
import com.cnfangmao.masterdata.model.Permission;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author chenxd
 * @since 2020-04-17
 */
public interface PermissionService extends IService<Permission> {

	Permission findByPermissionCode(String permissionCode);
	
	Permission findByPermissionName(String permissionName);
	
	IPage<Permission> queryListPermission(GeneralSearchDto<PermissionSearchDto> dto);
	
	List<PermissionDto> getAllPermissions();
}
